package com.team.appinfo.mapper;

import com.team.appinfo.entity.AppVersion;
import com.team.appinfo.entity.AppVersionExample;
import java.util.List;

public interface AppVersionMapper {
    int deleteByPrimaryKey(Long id);

    int insert(AppVersion record);

    int insertSelective(AppVersion record);

    List<AppVersion> selectByExample(AppVersionExample example);

    AppVersion selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(AppVersion record);

    int updateByPrimaryKey(AppVersion record);

    int deleteVersionById(Long id);

    //通过appid显示对应的版本
    List<AppVersion> getAllVersionByAppId(Long appid);

    //查询最新的app版本信息  传的是app信息的id
    AppVersion getLastVersionInfo(Long appid);
}